package com.emergency.embackend.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class ShareComment {
    private Long shareCommentId;
    private Long userId;
    private Long toUserId;
    private Long rootId;
    private String content;
    private char type;
    private Long shareId;
    private Long likeCount;
    private Long viewCount;
    private String icon;
    private String nickName;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    private List<ShareComment> childComment;
}
